package software;

import java.util.Iterator;

import softdata.Pla_item;
import softdone.Pla_done;
public class Pla_plates extends Pla_done{
	public Iterator iterator;
	public int Sum_Plates=0;
	public Pla_item platedata=new Pla_item();
	
	public void Pla_New(){
		Plate_new(platedata.Nam_Plate);
	}
	public void Pla_Edit(){
		Plate_edit(platedata.ID,platedata.Nam_Plate);
	}
	public void Pla_Delete(){
		Plate_delete(platedata.ID);
	}
	public int getNum(){
		//返回总记录条数
		Sum_Plates=Num_Plates();
		return Sum_Plates;
	}
	public void Read_plate(int s){
		Pla_Read(s);
		iterator=Plates.iterator();
	}
	public void nextPlate(){
		if(iterator.hasNext()){
			platedata=(Pla_item)iterator.next();
		}
	}
	public int getNum_Page(){
		// 返回当前页面记录条数
		return Num_Page;
	}
	public int getID(){
		return platedata.ID;
	}
	public String getNam_Plates(){
		return platedata.Nam_Plate;
	}

	public int getNum_Clicks(){
		return platedata.Num_Clicks;
	}

	public int getNum_Post(){
		return platedata.Num_Post;
	}
	public void setID(int s){
		platedata.ID=s;
	}
	public void setNam_Plates(String s){
		platedata.Nam_Plate=s;
	}
	
}
